home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / othergnu / texinf~1.zoo / texinfo.st / texi2roff / Makefile.st < prev    next >
Encoding:
Makefile  |  1993-06-23  |  1.1 KB  |  64 lines

  1.  
  2. # Makefile for Texinfo to nroff/troff translator (texi2roff)
  3. # Atari ST version
  4.  
  5. #cross-compiler
  6. CC = cgcc
  7. #CC = gcc
  8. RM = rm -f
  9. STRIP = #xstrip -k $@ # uncomment for a "production" version
  10.  
  11. # Flags:
  12. # -DBSD controls use of string(s).h and strchr/index only (not needed for Sun)
  13. # use -Dvoid=int for System III and V7
  14.  
  15. LDEFS = -DBSD -DHAVE_UNISTD
  16. MSHORT = #-mshort
  17. EXT = #16
  18.  
  19. LIBS = -liio$(EXT)
  20. LOADLIBES = $(LIBS)
  21.  
  22. # problems have been reported for -O with Sun4's, SunOS 4.0.1
  23. CFLAGS = -O2 -fomit-frame-pointer -Wall $(MSHORT)
  24. LDFLAGS= $(CFLAGS) -Xlinker -x -v
  25.  
  26.  
  27. OBJS = texi2roff.o table.o translate.o items.o
  28.  
  29. PROGS = texi2roff.ttp
  30.  
  31. all: $(PROGS)
  32.  
  33. .c.o:
  34.     $(CC) -c $(CPPFLAGS) $(LDEFS) $(DEFS) -I. -I$(srcdir) $(CFLAGS) $<
  35.  
  36. $(PROGS): $(OBJS)
  37.     $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
  38.     $(STRIP)
  39.  
  40. texi2roff.o : texi2roff.h proto.h
  41.  
  42. translate.o : texi2roff.h  proto.h
  43.  
  44. table.o : texi2roff.h  proto.h tablems.h tablemm.h tableme.h 
  45.  
  46. items.o: texi2roff.h proto.h
  47.  
  48. clean:
  49.     -$(RM) -f *.o compile.err
  50.  
  51. mostlyclean: clean
  52.  
  53. distclean: clean
  54.     $(RM) $(PROGS)
  55.  
  56. realclean: distclean
  57.     $(RM) TAGS
  58.  
  59. # Prevent GNU make v3 from overflowing arg limit on SysV.
  60. .NOEXPORT:
  61.  
  62.  
  63.  
  64.